using System.Collections.Generic;

namespace RxjhServer
{
	public class ShotClass
	{
		private int _FLD_NID;

		private int _FLD_INDEX;

		private int _FLD_PID;

		private int _FLD_NJ;

		private int _FLD_MAGIC0;

		private int _FLD_MAGIC1;

		private int _FLD_MAGIC2;

		private int _FLD_MAGIC3;

		private int _FLD_MAGIC4;

		private int _WX;

		private int _NEEDWX;

		public int FLD_NID
		{
			get
			{
				return _FLD_NID;
			}
			set
			{
				_FLD_NID = value;
			}
		}

		public int FLD_INDEX
		{
			get
			{
				return _FLD_INDEX;
			}
			set
			{
				_FLD_INDEX = value;
			}
		}

		public int FLD_PID
		{
			get
			{
				return _FLD_PID;
			}
			set
			{
				_FLD_PID = value;
			}
		}

		public int FLD_NJ
		{
			get
			{
				return _FLD_NJ;
			}
			set
			{
				_FLD_NJ = value;
			}
		}

		public int FLD_MAGIC0
		{
			get
			{
				return _FLD_MAGIC0;
			}
			set
			{
				_FLD_MAGIC0 = value;
			}
		}

		public int FLD_MAGIC1
		{
			get
			{
				return _FLD_MAGIC1;
			}
			set
			{
				_FLD_MAGIC1 = value;
			}
		}

		public int FLD_MAGIC2
		{
			get
			{
				return _FLD_MAGIC2;
			}
			set
			{
				_FLD_MAGIC2 = value;
			}
		}

		public int FLD_MAGIC3
		{
			get
			{
				return _FLD_MAGIC3;
			}
			set
			{
				_FLD_MAGIC3 = value;
			}
		}

		public int NEEDWX
		{
			get
			{
				return _NEEDWX;
			}
			set
			{
				_NEEDWX = value;
			}
		}

		public int WX
		{
			get
			{
				return _WX;
			}
			set
			{
				_WX = value;
			}
		}

		public int FLD_MAGIC4
		{
			get
			{
				return _FLD_MAGIC4;
			}
			set
			{
				_FLD_MAGIC4 = value;
			}
		}

		public int FLD_MAGICZh
		{
			get
			{
				int num = 0;
				if (_FLD_MAGIC1 != 0)
				{
					num++;
				}
				if (_FLD_MAGIC2 != 0)
				{
					num++;
				}
				if (_FLD_MAGIC3 != 0)
				{
					num++;
				}
				if (_FLD_MAGIC4 != 0)
				{
					num++;
				}
				return num;
			}
		}

		public static List<ShotClass> GetShotList(int id)
		{
			List<ShotClass> list = new List<ShotClass>();
			foreach (ShotClass item in World.Shot)
			{
				if (item.FLD_NID == id)
				{
					list.Add(item);
				}
			}
			return list;
		}

		public static ShotClass Getwp(int id)
		{
			foreach (ShotClass item in World.Shot)
			{
				if (item.FLD_PID == id)
				{
					return item;
				}
			}
			return null;
		}

		public static int GetShot(int id)
		{
			int num = 0;
			foreach (ShotClass item in World.Shot)
			{
				if (item.FLD_NID == id)
				{
					num++;
				}
			}
			return num;
		}
	}
}
